package Day08_19;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Test_IO_Properties {
    public static void main(String[] args) {
        try {
            FileInputStream fis = new FileInputStream("C");
            Properties pro = new Properties();
            pro.load(fis);
            String s1 = pro.getProperty("1");
            System.out.println(s1); 

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
